Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> nginx => problem z przerobieniem modrewite z apache
1q2w3e4r
post
Post #1





Grupa: Zarejestrowani
Postów: 238
Pomógł: 0
Dołączył: 6.05.2011

Ostrzeżenie: (10%)
X----


Witam,

Nie wiem jak przerobic modrewite z apache na nginix, inne przerobilem ale mam problem z ta linią bo jej nie obsługuje:

  1. RewriteRule ^[A-Z]{3}[a-z]{2}[0-9]{4}[a-z]{3}[0-9]{4}[A-Z]{2}[a-z]{1}[0-9]{1}/(.+)$ files/$1


Chodzi o takie linki:
www.strona.pl/FTUen4578sfi8202XAn8/cosTtaj.7z

Z góry dzięki.

P.S próbowałem tak:
rewrite ^/[A-Z]{3}[a-z]{2}[0-9]{4}[a-z]{3}[0-9]{4}[A-Z]{2}[a-z]{1}[0-9]{1}/(.+)$ /files/$1;
jednak dostaje błąd:
Restarting nginx: nginx: [emerg] directive "rewrite" is not terminated by ";" in /etc/nginx/sites-enabled/default:27
nginx: configuration file /etc/nginx/nginx.conf test failed
Go to the top of the page
+Quote Post
Necsord
post
Post #2





Grupa: Zarejestrowani
Postów: 189
Pomógł: 60
Dołączył: 5.10.2010
Skąd: Bydgoszcz

Ostrzeżenie: (0%)
-----


Drugi link z google'a, możesz spróbować: http://seikan.me/229/nginx-url-rewrite-error
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 08:48